﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NetworkPower.DataModel.Models.Mapping
{
    public class LoopLineMap : EntityTypeConfiguration<LoopLine>
    {
        public LoopLineMap()
        {
            this.HasKey(t => t.LoopLineId);
            this.ToTable("LoopLines");

            this.Property(t => t.Description).HasColumnName("Description");
            this.Property(t => t.DescriptionColor).HasColumnName("DescriptionColor");
            this.Property(t => t.InnerWire).HasColumnName("InnerWire");
            this.Property(t => t.TerminalNo).HasColumnName("TerminalNo");
            this.Property(t => t.TerminalNoColor).HasColumnName("TerminalNoColor");
            this.Property(t => t.OuterWire).HasColumnName("OuterWire");
            this.Property(t => t.CircuitNo).HasColumnName("CircuitNo");

            this.Property(t => t.RowIndex).HasColumnName("RowIndex");
            this.Property(t => t.IsMatched).HasColumnName("IsMatched");
            this.Property(t => t.FullTerminalNo).HasColumnName("FullTerminalNo");

            this.Property(t => t.FatheTerminalNo).HasColumnName("FatherTerminalNo");
        }
    }
}
